// 基于template/src/views/{{appModules}}/{{pages@DEPICKUPGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IPickupGridViewModel } from '@/core/interface/view/model';

function getModel(): IPickupGridViewModel {
	return {
		caption: '组织机构',
		title: '上级组织机构选择表格视图',
		capPSLanguageRes: 'DE.LNAME.SYS_ORGANIZATION',
		titlePSLanguageRes: 'PAGE.TITLE.SYS_ORGANIZATION.PICKUPGRIDVIEW',
		showDataInfoBar: false,
		codeName: 'sys_organizationParentOrgPickupGridView',
		uiEngineModel: [],
		ctrls: [
			{
				name: 'searchform',
				codeName: 'Default',
				controlType: 'SEARCHFORM',
			},
			{
				name: 'grid',
				codeName: 'Main',
				controlType: 'GRID',
			},
		],
		ctrlParams: {
			Sys_organizationsearchform: {},
			Sys_organizationgrid: {},
		},
		cssName: '',
		name: 'sys_organizationParentOrgPickupGridView',
		viewType: 'DEPICKUPGRIDVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'Sys_organization',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Organization_name',
		expandSearchForm: true,
		xDataCtrlName: 'grid',
		quickSearchPlaceholder: ['名称'].join(','),
		useDefaultLayout: true,
	};
}

export const model = getModel();
